From: Sebastian Kemper Date: Sun, 11 Feb 2018 18:18:05 +0000 (+0100) Subject: kamailio-5.x: fix RPATH of kamailio modules X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=4ac7a02e9f8e772c0f539b41a36c689cf5143f99;p=feed%2Ftelephony.git kamailio-5.x: fix RPATH of kamailio modules The kamailio build system provides an RPATH "///usr/lib/kamailio/" when linking. OpenWrt's rstrip.sh inspects this RPATH and drops it. Now the modules cannot find the needed libraries. Fix this by specifying a path that rstrip.sh accepts. Signed-off-by: Sebastian Kemper --- diff --git a/net/kamailio-5.x/Makefile b/net/kamailio-5.x/Makefile index af94cd0..47cd103 100644 --- a/net/kamailio-5.x/Makefile +++ b/net/kamailio-5.x/Makefile @@ -116,6 +116,9 @@ endef TARGET_CPPFLAGS+=$(if $(CONFIG_PACKAGE_kamailio5-mod-app-python),-I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION)) +# "lib_target" is specified in order for the modules to get a proper +# RPATH, as otherwise they would not find the internal libraries. + PKG_MAKE_ARGS:= \ prefix=/ \ cfg_dir=/etc/kamailio/ \ @@ -126,6 +129,7 @@ PKG_MAKE_ARGS:= \ group_include="standard" \ include_modules="$$(INCL_MODULES)" \ cfg_target:=/etc/kamailio/ \ + lib_target=/usr/lib/kamailio/ \ CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \ LD_EXTRA_OPTS="$(TARGET_LDFLAGS)" \ LOCALBASE="$(STAGING_DIR)/usr" \